<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue';
import ArticleList from './components/ArticleList.vue'
import { ref } from 'vue';
// 高亮的id 激活的id 根据业务 默认就在推荐频道
const activeId = ref(0)
</script>

<template>
  <ChannelNav :active-id="activeId" @change-active-id="activeId = $event"></ChannelNav>
  <ArticleList :active-id="activeId"></ArticleList>
</template>

